<template>
  <div class="outer">
    <Header></Header>

    <!-- 路由展示区 -->

      <router-view></router-view>

    <!-- <Footer v-show="$route.path==='/home'||$route.path==='/search'" ></Footer> -->
    <Footer v-show="$route.meta.isHomeOrSearch"></Footer>
  </div>
</template>

<script>
import Header from "@/components/Header/Header.vue";
import Footer from "@/components/Footer/Footer.vue";

export default {
  name: "App",
  components: {
    Header,
    Footer,
  },

  mounted() {
    //获取三联导航数据
    this.$store.dispatch("homeModule/getTypeNavList");
    //获取Home首页轮播图数据
    this.$store.dispatch("homeModule/getBannerList");
    //获取Home首页floor数据
    this.$store.dispatch("homeModule/getFloorList");
  },
};
</script>

<style lang="less">
</style>
